package com.song.pattern.builder.builder;

import java.util.ArrayList;
import java.util.List;

import com.song.pattern.builder.sender.MailSender;
import com.song.pattern.builder.sender.SMSSender;
import com.song.pattern.builder.sender.Sender;

public class Builder {
	
	private List<Sender> list = new ArrayList<Sender>();
	
	public void produceMailSender(int count){
		for(int i=0;i<count;i++){
			list.add(new MailSender());
		}
	}
	
	public void produceSMSSender(int count){
		for(int i=0;i<count;i++){
			list.add(new SMSSender());
		}
	}
	
	public List<Sender> getList() {
		return list;
	}
}
